package com.example.bbs.service.impl;


import com.example.bbs.dao.BlockDao;
import com.example.bbs.dao.impl.BlockDaoImpl;
import com.example.bbs.model.Block;
import com.example.bbs.service.BlockService;

import java.util.List;

/**
 * @auther: zhangxin
 * @Description:
 */
public class BlockServiceImpl implements BlockService {

    BlockDao blockDao = new BlockDaoImpl();
    @Override
    public List<Block> findBlockAll() {

        return blockDao.getBlockAll();
    }

    @Override
    public Block findBlockById(int bid) {
        return blockDao.getBlockById(bid);
    }

    @Override
    public Boolean updateBlockPostNumber(int bid) {
        return blockDao.updateBlockPostNumber(bid);
    }
}
